local daditu = {}

-- 判断是否某界面通用方法
local function isXXX(args)
  local x, y = LuaAuxLib.FindMultiColor(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8])
  local b = false
<<<<<<< HEAD
  if x > 0 and y > 0 then
    b = true
=======
  LuaAuxLib.TracePrint("1111", x, y)
  if x > 0 and y > 0 then
    b = true
    LuaAuxLib.TracePrint("### ", b, x, y)
>>>>>>> f277baccc0fbff749e4ef4260c26baf2fd46764d
  end
  return b, x, y
end

daditu.tapFuzhai = function()
  local args = {0, 770, 720, 903, "9DF4FC", "-1|-19|7DDFF9,-16|0|9BF0F9,-15|19|C4F7FC,-6|24|C8F2F7,2|27|D2FBFE,1|13|B0ECF8,-5|0|011932,-3|27|001531", 0, 0.9}
  local b, x, y = isXXX(args)
  if b then
    LuaAuxLib.Tap(x, y)
  end
  return b
end

daditu.tapGuanka = function()
  local args = {0, 911, 720, 1072, "92E2FB", "7|-1|000000,16|1|93E2F8,7|-7|82DCFE,5|-14|77D8FE,7|11|B4F1FD,0|20|C1F3FD,2|26|000000,8|29|D1FCFD,12|27|010913", 0, 0.9}
  local b, x, y = isXXX(args)
  if b then
    LuaAuxLib.Tap(x, y)
  end
  return b
end

function QMPlugin.RegisterModule()
  LuaAuxLib.Modules = LuaAuxLib.Modules or {}
  LuaAuxLib.Modules.Jp_Daditu = daditu
end
